//
//  NextViewController.m
//  礼物
//
//  Created by dllo on 15/11/16.
//  Copyright © 2015年 liangsicheng. All rights reserved.
//

#import "NextViewController.h"

@interface NextViewController ()

@end

@implementation NextViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor redColor];
    self.navigationItem.title=@"商品详情";
    self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"iconfont-fanhui.png"] style:UIBarButtonItemStyleDone target:self action:@selector(leftBarButtonItemAction:)];
    self.myWebView=[[UIWebView alloc]initWithFrame:CGRectMake(0, -64, WIDTH, HEIGHT+64+50)];
//    self.myWebView.scrollView.delegate=self;
    NSString *str=[NSString stringWithFormat:@"http://bohejiaju.liwushuo.com/items/%ld",self.model.id];
    NSURL *url=[NSURL URLWithString:str];
    NSURLRequest *request=[NSURLRequest requestWithURL:url];
    [self.myWebView loadRequest:request];
    [self.view addSubview:self.myWebView];
        
        self.myWebView.scrollView.bounces = NO;

}
-(void)leftBarButtonItemAction:(UIBarButtonItem *)barButtonItem
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
